package com.hxl.demo.mapper;

import com.hxl.demo.entity.TrainingRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface TrainingRecordMapper {
    Integer beginStudy(Integer userId, Integer contentId, Date beginTime,Date insertTime,Integer deptId);
    List<Map<String,Object>> getRecodeById(Integer userId, Integer contentId);
    List<Map<String,Object>> getRecodeByCount(Integer userId, Integer contentId);
    Integer endStudy(Integer id,Date endTime,Integer trainingTime,Integer cumulativeTime);

    List<TrainingRecord> trainingRecordAllList();
}